<template>
<div>
  <table>
    <tr>
      <td>章节</td>
      <td>课程</td>
      <td>视频</td>
    </tr>
    <tr v-for="i in klist">
      <td>{{i.name}}</td>
      <td>{{i.title}}</td>
      <td>
        <video :src="'http://localhost:5000/'+i.video_url" width="300px" height="200px" autoplay></video>
      </td>
    </tr>
  </table>
</div>
</template>

<script>
export default {
  name: "kec",
  data(){
    return{
      klist:[],
      id : this.$route.query.id
    }
  },
  methods:{
    get_vedio(){
      this.$axios.get('users/jieM?id='+this.id).then(res=>{
        this.klist = res.data.list
      })
    }
  },
  mounted() {
    this.get_vedio()
  }
}
</script>

<style scoped>

</style>
